package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.dao.entity.PriceOrderCacheDO;
import com.wlyuan.open.scanner.domain.quotation.QuotationMatch;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface PriceOrderCacheRepository {

    /**
     * 获取异常费用
     *
     * @param orderId
     * @return
     */
    BigDecimal getExceptionCost(Long orderId);

    /**
     * 根据订单id获取信息
     *
     * @param orderId
     * @return
     */
    List<PriceOrderCacheDO> getByOrderId(Long orderId);

    /**
     * 获取匹配合约信息
     *
     * @param orderId
     * @return
     */
    QuotationMatch getMatchInfo(Long orderId);

    List<PriceOrderCacheDO> getAdditionByOrderId(Long orderId);

    boolean checkQuotation(Long orderId);

    QuotationMatch getNoAdditionMatchInfo(Long orderId);
}
